<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* div {
            color: rebeccapurple;
        }
        p {
            color: green;
        }
        h1 {
            color: brown;
        } */
        .red {
            color: red;
        }
        .green {
            color: green;
        }

        #p1 {
            color: blue;
        }
        

    </style>
</head>
<body>
    <h1>一级标题</h1>
    <div class="red">我是一个div111</div>
    <div class="green">我是一个div222</div>
    <p id="p1" class="red">我是一个p标签111</p>
    <p class="green">我是一个p标签222</p>
    <h1>一级标题</h1>
</body>
</html>